﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Headlight;
using System.Web.Mvc.Html;


public static class LinqExt
{
    public static string MyValidationSummary(this System.Web.Mvc.HtmlHelper<Headlight.ViewModels.QuoteViewModel> helper, string validationMessage = "")
    {

        string retVal = "</div></div>";
        return retVal.ToString();
    }
}
    public static class ViewExtensions
    {
        public static string WizardValidationSummary(this System.Web.Mvc.HtmlHelper<Headlight.ViewModels.QuoteViewModel> html)
        {
            //if (!html.ViewData.ModelState.IsValid)
            {
                //return "<div class=\"validation-summary\">" + html.MyValidationSummary(validationMessage) + "</div>"
                return @"        
                          <div class=""alert alert-block alert-error fade in"">
                            <a type=""button"" class=""close"" data-dismiss=""alert"">×</a>
                            <h4 class=""alert-heading"">Oops! You got an error!</h4>
                            <p>Please ensure you've answered all question highlighted in red below, and then click 'Continue' again. </p>
                            <!--<p>
                              <a class=""btn btn-danger"" href=""#"">Take this action</a> <a class=""btn"" href=""#"">Or do this</a>
                            </p>-->
                          </div>";
            }
            //else
            {
                //return "";
            }
        }
    }
